package top.kaoshanji.p3ch04a.mapper;

import top.kaoshanji.p3ch04a.model.Employee;

/**
 * @author kaoshanji
 * ^_^
 * create time 2025/4/19 18:56
 */
public interface EmployeeMapper {

    /**
     * 根据员工id查询员工和部门信息（association标签之关联嵌套映射）
     * @param id 员工id
     * @return Employee
     */
    Employee findEmployeeById1(Integer id);

    /**
     * 根据员工id查询员工和部门信息（association标签之关联嵌套查询）
     * @param id 员工id
     * @return Employee
     */
    Employee findEmployeeById2(Integer id);





}
